import { RouteRecordRaw } from 'vue-router';
import { Layout, ContainerLayout } from '@/router/constant';
import { SettingOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils';

const routeName = 'science';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/science',
    name: routeName,
    redirect: '/science/account',
    component: ContainerLayout,
    meta: {
      title: '学术资源',
      sort: 1,
    },
    children: [
      {
        path: 'seminar',
        name: `${routeName}_seminar`,
        meta: {
          title: 'AI研讨会',
        },
        component: () => import('@/views/science/seminar.vue'),
      },
      {
        path: 'thesis',
        name: `${routeName}_thesis`,
        meta: {
          title: '热点论文',
        },
        component: () => import('@/views/science/seminar.vue'),
      },
      {
        path: 'trend',
        name: `${routeName}_trend`,
        meta: {
          title: '技术趋势',
        },
        component: () => import('@/views/science/seminar.vue'),
      },
      {
        path: 'guideline',
        name: `${routeName}_guideline`,
        meta: {
          title: '项目实习',
        },
        component: () => import('@/views/science/seminar.vue'),
      },
    ],
  },
];

export default routes;
